package com.example.springboot.config.imports;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * 实现ImportSelector接口，springboot启动时会将selectImports返回数组的全限定类名加入ioc容器
 *
 * @Author:ChenZhangKun
 * @Date: 2021/4/30 16:00
 */
public class ImportSelectorImpl implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        return new String[]{"com.example.springboot.config.imports.Bird", "com.example.springboot.config.imports.Snake"};
    }
}
